package com.iwayin.core.dao.fans;

import java.util.List;

import com.iwayin.core.dataobject.FansDO;
import com.iwayin.core.dataobject.FollowDO;

public interface FansDAO {

	/**
	 * @author LiuWenLong
	 * @version 2012-3-5下午9:34:38
	 * @descriptions 添加粉丝
	 * @param fans
	 */
	void addFans(FansDO fans);

	/**
	 * @author LiuWenLong
	 * @version 2012-3-5下午9:34:55
	 * @descriptions 添加粉丝
	 * @param follow
	 */
	void addFans(FollowDO follow);

	/**
	 * @author LiuWenLong
	 * @version 2012-3-5下午9:34:55
	 * @descriptions 删除粉丝
	 * @param follow
	 */
	void deleteFans(FollowDO follow);

	/**
	 * @author LiuWenLong
	 * @version 2012-3-5下午9:34:55
	 * @descriptions 删除粉丝
	 * @param follow
	 */
	void deleteFans(FansDO fans);

	/**
	 * 查询用户粉丝
	 * 
	 * @param fans
	 * @return
	 * @author harry
	 */
	public List<FansDO> findFansList(FansDO query);
	
	/**
	 * 查询当天fans最多TOP用户
	 * @param size
	 * @return
	 */
	public List<FansDO> FindFansMostToday(Long size);
	
	/**
	 * 查询用户粉丝
	 * 
	 * @param fans
	 * @return
	 * @author zhanglei
	 */
	public List<Long> findFansIds(Long userId);
}
